package com.tang.campus_market.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("market_user") //对应数据库中的表
public class User {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String nickName;
    private String email;
    private String password;
    private String phoneNumber;
    private String sex;
    private Date createDate;
    private Date modifyDate;
    private String picture;
    private String power;
    private String state;
    private String isActive;
    private Integer code;
}
